package com.gift.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 游戏账号表
 */
public class GameAccount {
    /**
     * 游戏账号ID
     */
    private Integer aid;
    /**
     * 游戏账号名字
     */
    private String accountnum;
    /**
     * 游戏ID
     */
    private Integer gid;
    /**
     * 所属游戏
     */
    private String thegame;
    /**
     * 初始分数
     */
    private BigDecimal initialscore;
    /**
     * 是否被启用；1为是；0为否
     */
    private Integer isuse;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifytime;

    public GameAccount(Integer aid, String accountnum, Integer gid, String thegame, BigDecimal initialscore, Integer isuse, LocalDateTime createtime, LocalDateTime modifytime) {
        this.aid = aid;
        this.accountnum = accountnum;
        this.gid = gid;
        this.thegame = thegame;
        this.initialscore = initialscore;
        this.isuse = isuse;
        this.createtime = createtime;
        this.modifytime = modifytime;
    }

    public GameAccount() {
        super();
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAccountnum() {
        return accountnum;
    }

    public void setAccountnum(String accountnum) {
        this.accountnum = accountnum == null ? null : accountnum.trim();
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getThegame() {
        return thegame;
    }

    public void setThegame(String thegame) {
        this.thegame = thegame == null ? null : thegame.trim();
    }

    public BigDecimal getInitialscore() {
        return initialscore;
    }

    public void setInitialscore(BigDecimal initialscore) {
        this.initialscore = initialscore;
    }

    public Integer getIsuse() {
        return isuse;
    }

    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getModifytime() {
        return modifytime;
    }

    public void setModifytime(LocalDateTime modifytime) {
        this.modifytime = modifytime;
    }
}